package com.woniuxy.yoga.coach.client;

import com.woniuxy.yoga.coach.client.dto.business.BusinessStoreDTO;
import com.woniuxy.yoga.commons.core.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 场馆的服务接口访问类
 */
@FeignClient(name = "business-service",path = "/business")
public interface BusinessStoreClient {

    /**
     * 通过门店ID查询门店信息
     * @param storeId
     * @return
     */
    @GetMapping("/businessStore/selByStoreId/{storeId}")
    Result<BusinessStoreDTO> selByBusinessStoreId(@PathVariable("storeId") Integer storeId);
}
